<!DOCTYPE html>
<html lang="en">
<head>
<{include file="public_html/header_tag.html"}>
<title><{$question_info.title}></title>
<link href="/static/public/layer/src/css/layui.css" rel="stylesheet">
<script src="/static/public/layer/src/layui.js"></script>
<style>
    .layui-code-h3{color:#999;text-align:right;font-size:10px;padding:0 10px;background-color:#F2F2F2; height:30px; line-height:30px;border-bottom: 1px solid #ddd;}
</style>
</head>
<body>
<div class="wrap">
    <!--star header-->
    <div class="header">
    <{include file="public_html/header_menu.html"}>
    </div>
    <!--end  header-->

    <div class="return_nav">
        <div class="w1200">
        您的位置：<a href="/question">问答</a><span>&gt;</span><em>回复提问</em>
        </div>
    </div>
    <!--star main-->
    <div class="wrap_main fix">
        <!--content star-->
        <div class="col_main">
            <!--star-->
            <div class="box_item">
                <!--star left-->
                <div class="zx_left l">
                    <div class="zixun-details line-all b-FFFFFF p-lr40">
                        <div class="p-tb30 LH30">
                            <!--star-->
                            <div class="p-tb10 tac"><span class="fs20 fwb"><{$question_info.title}></span><span class="p-l40">2016-06-15</span></div>
                            <div class="article_info c-999999">
                            </div>
                            <div class="article_nr fix tac">
                                <{$question_info.content}>
                            </div>
                            <form class="layui-form layui-form-pane" method="post" action="/question/add_answer">
                                <input type="hidden" name="qid" value="<{$question_info.id}>" />
                                <div style="border-bottom:1px solid #999; margin:20px 0; font-size:20px;"><{$question_info.answer_num}>个回复</div>
                                <{foreach from=$answer_list item=aitem key=akey}>
                                <blockquote class="layui-elem-quote layui-quote-nm" style="padding:0;">
                                    <h3 class="layui-code-h3">
                                        <span style="width:100px; float:left; text-align:left;">
                                            <{if $akey == 0}>
                                            沙发
                                            <{elseif $akey == 1}>
                                            板凳
                                            <{elseif $akey == 2}>
                                            地板
                                            <{else}>
                                            <{$akey+1}>楼
                                            <{/if}>
                                            <{if $aitem.up > 0}>
                                            [<{$aitem.up}>人觉得有用]
                                            <{/if}>
                                        </span>
                                        <span><{$aitem.nick}>回复于<{$aitem.add_time|time_ago}></span></h3>
                                    <div style="padding:10px;"><{$aitem.content}></div>
                                </blockquote>
                                <{/foreach}>
                                <div class="layui-form-item layui-form-text">
                                    <div class="layui-input-block">
                                        <textarea class="layui-textarea <{if $uid > 0}> layui-hide <{/if}>" <{if $uid <= 0}>disabled<{/if}> name="content" lay-verify="content" <{if $uid > 0}> id="editor"<{/if}>></textarea>
                                        <{if $uid <= 0}><span style="position:absolute;top:33px;left:310px;">要回复问题请先<a href="/login" style="color:#155faa">登录</a>或<a href="/reg" style="color:#155faa">注册</a></span><{/if}>
                                    </div>
                                </div>
                                <{if $uid > 0}>
                                <div class="layui-form-item">
                                    <div class="layui-input-inline" style="width: 690px">
                                        <button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
                                    </div>
                                    <div class="layui-input-inline" style="width: 90px">
                                        <input type="checkbox" name="anonymous" value="2" title="匿名"><div class="layui-unselect layui-form-checkbox"><span>匿名</span><i class="layui-icon"></i></div>
                                    </div>
                                </div>
                                <{/if}>
                            </form>
                            <!--end-->
                        </div>
                    </div>
                </div>
                <!--end left-->
                <!--star right-->
                <div class="zx_right r">
                    <!--star热门问答-->
                    <div class="line-all b-FFFFFF m-b30 p-lr25">
                        <div class="mt h40 line-bottom p-t10"><span class="fs16">热门问答</span></div>
                        <div class="mc fix p-tb20 LH25">
                            <{foreach from=$hot_question item=hot_q_item}>
                            <dl class="line-bottom2 p-b10 m-b10">
                                <dt class="l m-r10">
                                    <a class="ith_img img5252" href="javascript:;"><img src="<{$hot_q_item.head_image_url}>"></a>
                                    <!-- <div class="tac ells" style="width:52px;"></div> -->
                                </dt>
                                <dd>
                                    <div class="h30 oh ells"><a class="fs14" href="javascript:;"><{$hot_q_item.title}></a></div>
                                    <div><span class="c-999999"><a href="javascript:;"><{$hot_q_item.nick}></a>发表于<{$hot_q_item.add_time|time_ago}></span></div>
                                    <!-- <div class="h30 oh ells m-t2"><span class="c-666666"></span></div> -->
                                </dd>
                            </dl>
                            <{/foreach}>
                        </div>
                    </div>
                    <!--end热门问答-->
                </div>
                <!--end right-->
            </div>
            <!--end-->
            <div class="fix" style="height:90px;"></div>
        </div>
        <!--content end-->
    </div>
    <!--end 做题模式-->
    <!--star  footer-->
    <div class="footer">
      <!-- <{include file="public_html/footer.html"}> -->
    </div>
    <!--end  footer-->
</div>
<{include file="footer.html"}>
<script>
    
    layui.use(['form', 'jquery', 'layedit'], function(){
        var form = layui.form(), $ = layui.jquery, layedit = layui.layedit;
        layedit.build('editor'); //建立编辑器
    });
</script>
</body>
</html>
